package com.alibaba.goods.order.service;

import com.alibaba.goods.order.entity.Commentresult;
import com.alibaba.goods.order.service.impl.HanderExceptionMannagerTwo;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author:RenPu
 * @Date: 2020/7/7 13:07
 * @Version: 1.0
 * @description:
 */

@FeignClient(value = "goods-storage")
public interface StorageService {

    /**
     * 扣减库存方法
      * @param productId
     * @param count
     * @return
     */
 @PostMapping(value = "/storage/decrease")
public Commentresult decrease(@RequestParam("productId") Long productId,@RequestParam("count") Integer count);


}
